package com.cqc.paoclient.ui.login;

import com.cqc.paoclient.base.BaseRxPresenter;
import com.cqc.paoclient.base.BaseView;
import com.cqc.paoclient.model.BaseMsgModel;

/**
 * Created by cui on 2017/11/25.
 * 只有一个动作：登录
 * 该动作有2个结果：登录成功和登录失败
 */

public interface LoginContract {

    interface View extends BaseView {
        void loginSuccess(BaseMsgModel result);

        void loginFail(String error);
    }

    abstract class Presenter extends BaseRxPresenter<View> {
        abstract void login(String user, String pwd);
    }
}
